﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SDLITS.Web
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            byte[] FingerBuf1 = new byte[304 * 256];
            byte[] FingerBuf = new byte[304 * 256];

            long iWidth = 256;
            long iHeight = 304;
            int s = Finger.mxUsbGetImage(FingerBuf1, 0);
            Finger.mxRaw2Bmp(FingerBuf, FingerBuf1, 256, 304);
            string contenttype = "image/BMP";

            Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8");
            Response.ContentType = contenttype;
            Response.Clear();
            Response.BinaryWrite(FingerBuf);
            Response.End();
        }
    }
}